/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 *
 *
 * @author LGH
 * @date 2020-08-27 18:02:40
 */
@Data
@TableName("tz_sku_retail")
public class SkuRetail implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 组合商品sku和单品库关联id
     */
    @TableId
    private Long skuRetailId;
    /**
     * 商家id
     */
    private Long shopId;
    /**
     * 商品id
     */
    private Long prodId;
    /**
     * skuid
     */
    private Long skuId;
    /**
     * 单品id
     */
    private Long retailProdId;
    /**
     * 组合商品数量
     */
    private Integer retailNums;
    /**
     * -1删除 1正常
     */
    private Integer status;

    /**
     * 单品的库存
     */
    @TableField(exist = false)
    private Integer stocks;

}
